import request from "@/utils/request";

export function addTestQuestion(testQuestion) {
    return request({
        url: '/testQuestion/addTestQuestion',
        method: 'post',
        data:testQuestion
    })
}

export function deleteTestQuestion(ids) {
    return request({
        url: '/testQuestion/deleteTestQuestion',
        method: 'delete',
        data:ids
    })
}

export function changeTestQuestion(testQuestion) {
    return request({
        url: '/testQuestion/updateTestQuestion',
        method: 'post',
        data:testQuestion
    })
}

export function getAllTestQuestion(testQuestion,page,pageSize) {
    return request({
        url: '/testQuestion/getAllTestQuestion?'+'page='+page+'&pageSize='+pageSize,
        method: 'post',
        data:testQuestion
    })
}
export function getTestQuestionList() {
    return request({
        url: '/testQuestion/getTestQuestionList',
        method: 'get',
    })
}
